<?php
 /*********************************************\
 |* @author Yannic Schnetz, Mike Waldvogel    *|
 |* @copyright Yannic Schnetz, Mike Waldvogel *|
 |*********************************************|
 |* @since 30.07.2013                         *|
 \*********************************************/

$homeData = array();
$homeQuery = $DB->query("SELECT * FROM `home` ORDER BY `sorting` ASC");
while($row = $DB->fetch($homeQuery)) {
    $row['text'] = Functions::defilter_text($row['text']);
    $homeData[] = $row;
}

$tpl->assign('homeData', $homeData);
?>
